package top.mcwebsite.playandroid.business.login.impl.api

import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST
import top.mcwebsite.playandroid.common.network.model.RespModel
import top.mcwebsite.playandroid.common.user.api.model.UserInfo

interface LoginApi {

    @POST("/user/login")
    @FormUrlEncoded
    suspend fun login(@Field("username") username: String, @Field("password") password: String): RespModel<UserInfo>
}